package cn.kgc.vue.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_role
 */
@TableName(value ="sys_role")
@Data
@Schema(description = "角色实体类")
public class Role implements Serializable {
    /**
     * 角色id
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    @Schema(description = "角色id",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Integer roleId;

    /**
     * 角色名称
     */
    @TableField(value = "role_ch")
    @Schema(description = "角色名称",requiredMode = Schema.RequiredMode.REQUIRED)
    private String roleCh;

    /**
     * 角色标识
     */
    @TableField(value = "role_en")
    @Schema(description = "角色标识",requiredMode = Schema.RequiredMode.REQUIRED)
    private String roleEn;

    /**
     * 角色描述
     */
    @TableField(value = "comments")
    @Schema(description = "角色描述",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String comments;

    /**
     * 乐观锁
     */
    @Version
    @TableField(value = "version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}